var HPConfig={current_vertical_name:'',current_web_address:''} var HPFBConfig={FACEBOOK_COMMENTS_BUNDLE_ID:48114987133,FACEBOOK_PLEDGE_BUNDLE_ID:48114517133,FACEBOOK_JOIN_PLEDGE_BUNDLE_ID:48114517133,FACEBOOK_VOTE_BUNDLE_ID:81637352133,FACEBOOK_VOTEPREVIEW_BUNDLE_ID:53483022133,FACEBOOK_POLL_BUNDLE_ID:81637352133,FACEBOOK_SLIDESHOW_POLL_BUNDLE_ID:95176577133} var jimAuld=window.jimAuld||{};jimAuld.utils=jimAuld.utils||{};jimAuld.utils.cookies={get:function(cookieName){var cookieNameStart,valueStart,valueEnd,value;cookieNameStart=document.cookie.indexOf(cookieName+'=');if(cookieNameStart<0){return null;} valueStart=document.cookie.indexOf(cookieName+'=')+cookieName.length+1;valueEnd=document.cookie.indexOf(";",valueStart);if(valueEnd==-1){valueEnd=document.cookie.length;} value=document.cookie.substring(valueStart,valueEnd);value=unescape(value);if(value==""){return null;} return value;},set:function(cookieName,value,hoursToLive,path,domain,secure){var expireString,timerObj,expireAt,pathString,domainString,secureString,setCookieString;if(!hoursToLive||typeof hoursToLive!='number'||parseInt(hoursToLive)=='NaN'){expireString="";} else{timerObj=new Date();timerObj.setTime(timerObj.getTime()+(parseInt(hoursToLive)*60*60*1000));expireAt=timerObj.toGMTString();expireString="; expires="+expireAt;} pathString="; path=";(!path||path=="")?pathString+="/":pathString+=path;domainString="; domain=";(!domain||domain=="")?domainString+=window.location.hostname.replace(/www\./,''):domainString+=domain;(secure===true)?secureString="; secure":secureString="";value=escape(value);setCookieString=cookieName+"="+value+expireString+pathString+domainString;document.cookie=setCookieString;},del:function(cookieName,path,domain){(!path||!path.length)?path="":path=path;(!domain||!domain.length)?domain="":domain=domain;jimAuld.utils.cookies.set(cookieName,"",-8760,path,domain);},test:function(){jimAuld.utils.cookies.set('cT','acc');var runTest=jimAuld.utils.cookies.get('cT');if(runTest=='acc'){jimAuld.utils.cookies.del('cT');testStatus=true;} else{testStatus=false;}return testStatus;}};var HuffCookies=jimAuld.utils.cookies;HuffCookies.getUserName=function(){return this.get(((/\.beta\./.test(location.hostname))?'beta'+location.port+'_huffpost_user':'huffpost_user'));};HuffCookies.getUserGuid=function(){return this.get(((/\.beta\./.test(location.hostname))?'beta'+location.port+'_huffpost_user_guid':'huffpost_user_guid'));};HuffCookies.getPass=function(){return this.get(((/\.beta\./.test(location.hostname))?'beta'+location.port+'_huffpost_pass':'huffpost_pass'));};HuffCookies.getLastLogin=function(){return this.get(((/\.beta\./.test(location.hostname))?'beta'+location.port+'_huffpost_lastlogin':'huffpost_lastlogin'));};HuffCookies.getBigAvatar=function(){var c=this.get(((/\.beta\./.test(location.hostname))?'beta'+location.port+'_huffpost_bigphoto':'huffpost_bigphoto'));if(!c||c==''){return'';}else{return c;}};HuffCookies.getSmallAvatar=function(){var c=this.get(((/\.beta\./.test(location.hostname))?'beta'+location.port+'_huffpost_smallphoto':'huffpost_smallphoto'));if(!c||c==''){return'';}else{return c;}};HuffCookies.getSNPstatus=function(){return this.get(((/\.beta\./.test(location.hostname))?'beta'+location.port+'_huffpost_snp_status':'huffpost_snp_status'));};HuffCookies.getReadTrackingStatus=function(){return this.get(((/\.beta\./.test(location.hostname))?'beta'+location.port+'_huffpost_snp_read':'huffpost_snp_read'));};HuffCookies.setCookie=function(cookieName,value,ttl){var cookie_preffix=(/\.beta\./.test(location.hostname))?'beta'+location.port+'_':'';var domain=location.hostname;domain=domain.replace(/www\./,'');if(!ttl)ttl=336;return this.set(cookie_preffix+cookieName,value,336,'/','.'+domain);};HuffCookies.getCookie=function(cookieName){var cookie_preffix=(/\.beta\./.test(location.hostname))?'beta'+location.port+'_':'';var domain=location.hostname;domain=domain.replace(/www\./,'');return this.get(cookie_preffix+cookieName);};HuffCookies.domainCookie=function(){var domain=location.hostname;domain=domain.replace(/www\./,'');return domain;};HuffCookies.getUserId=function(){return this.get(((/\.beta\./.test(location.hostname))?'beta'+location.port+'_huffpost_user_id':'huffpost_user_id'));};HuffCookies.destroyCookie=function(name){var prefix=(/\.beta\./.test(location.hostname))?'beta'+location.port+'_':'';return this.del(prefix+name,'/','.'+HuffCookies.domainCookie());}; var JSON=function(){var m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},s={'boolean':function(x){return String(x);},number:function(x){return isFinite(x)?String(x):'null';},string:function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c;} c=b.charCodeAt();return'\\u00'+ Math.floor(c/16).toString(16)+ (c%16).toString(16);});} return'"'+x+'"';},object:function(x){if(x){var a=[],b,f,i,l,v;if(x instanceof Array){a[0]='[';l=x.length;for(i=0;i':return_text+='\\x3E';break;case'\'':return_text+='\\\'';break;case'\\':return_text+='\\\\';break;case'"':return_text+='\\"';break;case"\n":return_text+='\\n';break;case"\r":return_text+='\\r';break;default:return_text+=text[i];break;}} return return_text;},getHostName:function() {var port=document.location.port;if(!port||port==''||port==80) {port='';} else {port=':'+port;} return'http://'+document.location.hostname+port;},GetAmazonS3Location:function() {return-1!==location.href.toLowerCase().indexOf('beta.huffingtonpost.com')?'dev.assets.huffingtonpost.com':'images.huffingtonpost.com';},LinkifyTextLinks:function(arg) {return arg.replace(/[a-z]+:\/\/[a-z0-9-_]+\.[a-z0-9-_:~%&\?\/.=]+[^:\.,\)\s*$]/ig,function(m){return''+((m.length>25)?m.substr(0,24)+'...':m)+'';});},GetEntryID:function(string){var entry_id=null;if((entry_id=(new RegExp(/.*huffingtonpost\.com.*_(\d+)\.html/)).exec(string))) {return entry_id[1];} return false;},isWWW:function(url){if(!url)url=window.location.href+'';if(url.indexOf("www")==7)return true;return false;},hide:function(id){D.setStyle(id,'display','none');},show:function(id,type){if(typeof(type)=="undefined") type='block';D.setStyle(id,'display',type);},show_inline:function(id){D.setStyle(id,'display','inline');},trim:function(str,chars){return this.ltrim(this.rtrim(str,chars),chars);},ltrim:function(str,chars){chars=chars||"\\s";return str.replace(new RegExp("^["+chars+"]+","g"),"");},rtrim:function(str,chars){chars=chars||"\\s";return str.replace(new RegExp("["+chars+"]+$","g"),"");},toggleVis:function(id){D.batch(id,function(el){if(el.style.display=='none')el.style.display='block';else el.style.display='none';});},toggleReply:function(id){D.batch('reply_'+id,function(el){if(el.style.display=='none')el.style.display='block';else el.style.display='none';});},toggleTopPosts:function(caller){if(!D.hasClass(caller,'active')) {HuffPoUtil.toggleVis(['top_news_links','top_blog_links']);HuffPoUtil.tradeClass('tab_top_news','tab_top_blogs','active');}},tradeClass:function(el1,el2,className) {if(D.hasClass(el1,className)) {D.addClass(el2,className);D.removeClass(el1,className);} else {D.addClass(el1,className);D.removeClass(el2,className);}},WaitForCondition:function(action,interval,condition) {if(!condition.apply(this)) {var _this=this;setTimeout(function(){HPUtil.WaitForCondition.apply(_this,[action,interval,condition]);},interval);} else {action.apply(this);}},AnimRequestFinished:function(els,from_color,to_color) {if(undefined===els) {els=[];} from_color=from_color||'#F9E801';to_color=to_color||'#FFFFFF';if(0==els.length) return;var canim=[];for(var i=0;i');},checkEmail:function(email){if(email&&((email.indexOf('@')>0)&&(email.indexOf('.')>0))&&(email.indexOf('.')!=email.length-1)){return true;} return false;},flash:function(element){var flashwarn=new YAHOO.util.ColorAnim(element,{backgroundColor:{from:'#ff0000',to:'#ffffff'}});flashwarn.animate();},enforceTextAreaLimit:function(e,obj){if(!obj||!obj.chars)obj={chars:100};if(this.value.length>obj.chars){HuffPoUtil.flash(this);this.value=this.value.substring(0,obj.chars);this.scrollTop=this.scrollHeight;}},initUserStatus:function(){if(!HPUtil.isWWW())return;if(HuffCookies.get('user_is_not_approved')) {HuffCookies.del('user_is_not_approved');HPError.e('Your account has not yet been activated');window.location.reload();return;} if(HuffCookies.get('snn_track_user_logged_in')&&typeof(SNProject)!="undefined") {SNProject.track(HuffCookies.getUserId(),'user_log_in');HuffCookies.del('snn_track_user_logged_in');} if(HuffCookies.getUserId()&&(HuffCookies.getSNPstatus()==null||HuffCookies.getReadTrackingStatus()==null)) {var cv=HuffCookies.get('snp_for_cookie_restore');var d=new Date();if(!cv) {HuffCookies.set('snp_for_cookie_restore',d.getTime());} else if(d.getTime()-cv>5*60*1000) {C.asyncRequest('GET','/users/social_news_project/snp_cookie_restore.php',{success:function(o){}});if(HuffCookies.getSNPstatus()==null||HuffCookies.getReadTrackingStatus()==null) {var d=new Date();HuffCookies.set('snp_for_cookie_restore',d.getTime());} else {HuffCookies.del('snp_for_cookie_restore');}}} if(typeof(HPFB)=='undefined')return false;SNProject.fanCheck();setTimeout(function() {var t=new Date;t=t.getTime();t=parseInt(t/1000);var OFFSET=86400;if(HuffCookies.getLastLogin()&&HuffCookies.getLastLogin()!='') {if(parseInt(HuffCookies.getLastLogin())+OFFSET')+8-video_code.toLowerCase().indexOf('';}else{$(this.profile_pic).innerHTML='';} $(this.profile_pic).style.width='50px';$(this.profile_pic).style.height='50px';if(Y.util.Event.isIE&&/MSIE 6.0/i.test(navigator.userAgent)) {$('masthead_inner').style.position='relative';var container_height=$('logo').offsetHeight;var el_height=15;if(container_height>89) {container_height=container_height-89;el_height=el_height+container_height;} $(this.profile_pic).style.position='absolute';$(this.profile_pic).style.right=0;$(this.profile_pic).style.top=''+el_height+'px';$(this.profile_pic).style.float='right';$('masthead_inner').appendChild($(this.profile_pic));} else {$(this.profile_pic).style.top='-65px';$(this.profile_pic).style.float='right';} $(this.profile_pic).style.display='block';}},loadAvatarArticleStyle:function(base_link) {var profile_pic_link=(HuffCookies.getSNPstatus()==1)?'/social/'+this.cookie_username:'/users/profile/'+this.cookie_username;if(this.user_logged_in&&this.got_avatar_cookies&&typeof ad_ears_on=='undefined') {if(!this.got_external_avatar) {$('avatar_logged_in').innerHTML='';$('avatar_logged_in').style.top='-10px';$('avatar_logged_in').style.left='-23px';} else {$('avatar_logged_in').innerHTML='';$('avatar_logged_in').style.left='-23px';}}},freshHuffPoAvatar:function(avatar_url) {var al=HuffPoUtil.AvatarLoader;if(/\?[0-9]+$/.test(avatar_url)&&!this.got_external_avatar&&!this.got_xfbml_avatar) {var d=new Date();var curr_month=d.getMonth();var curr_year=d.getFullYear();var curr_monthday=d.getDate();var curr_hour=d.getHours();var curr_minute=d.getMinutes();var curr_second=d.getSeconds();var suffix=''+curr_year+curr_month+curr_monthday+curr_hour+curr_minute+curr_second;return avatar_url.replace(/\?[0-9]+$/,'?'+suffix);}}},ImageLoader:{imageLoaderClass:'unloaded-image',lookAhead:300,loadFrom:'s3',timeOutId:0,handlers:[],timeOutId:0,onScrollDelay:100,onScrollDelayIE:100,_onScrollDelay:0,addHandler:function(fn) {var il=HuffPoUtil.ImageLoader;var l=il.handlers.length;il.handlers[l]=fn;if(!il._onScrollDelay) {if(E.isIE) {il._onScrollDelay=il.onScrollDelayIE;} else il._onScrollDelay=il.onScrollDelay;}},myHandlerOnScroll:function() {var il=HuffPoUtil.ImageLoader;if(il.timeOutId) {clearTimeout(il.timeOutId);} il.timeOutId=setTimeout(il.myHandler,il._onScrollDelay);},myHandler:function() {var il=HuffPoUtil.ImageLoader;for(var i=0,l=il.handlers.length;i0?add_dimensions[0]:0;parent_region.top+=add_dimensions[1]<0?add_dimensions[1]:0;parent_region.bottom+=add_dimensions[1]>0?add_dimensions[1]:0;var img_region=null,intersects=null;} for(var i=0,elPos=0;i=2&&matches[1]<7.2) {document.body.style.margin='0';}}},showad:function() {this.show('rightad');this.show('frontmidad');},externalLinks:function() {E.addListener(document.getElementsByTagName("a"),'click',function(e){if(this.href&&this.rel=="popup") {E.stopEvent(e);var height=430;var width=450;if(this.className=='commentpop') height=430;if(this.className=='biolink') width=450;var top=Math.ceil(screen.height/2)-Math.ceil(height/2);var left=Math.ceil(screen.width/2)-Math.ceil(width/2);window.open(this.href,'bio','toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=1,resizable=1,width='+width+',height='+height+',top='+top+',left='+left);} if(this.href&&typeof(urchinTracker)!="undefined") {urchinTracker("/out/?u="+this.href);}});},SharePollToFacebook:function(feed_bundle_id,vote_text,poll_question) {vote_link=''+poll_question+'';var feed_tokens={'vote_text':'voted: "'+vote_text+'" You take the poll - ','vote_link':vote_link};FB.ensureInit(function(){Modal.HideEmbed();FB.Connect.showFeedDialog(feed_bundle_id,feed_tokens,null,null,null,FB.RequireConnect.promptConnect,function(){Modal.ShowEmbed();});});},vote:function(pollId){form=$('poll_form_'+pollId);requestUrl='/polls/add_stats.php?pid='+pollId;var checked=false;var show_facebook=false;for(var i=0;i';return innerH;} else {ad_spec.prefix='http://ad.doubleclick.net/adj/';s=document.createElement('script');s.type="text/javascript";s.src=getSource(ad_spec);return s;}};getQCSegs=function() {a=HuffPoUtil.getCookie('__qseg');return(a)?a.replace(/\|{0,1}Q_/gi,';qcs=').replace(/^;/,'')+';':'';};getSource=function(ad_spec) {if(ad_spec.prefix) adSource=ad_spec.prefix;else adSource="http://ad.doubleclick.net/adi/";adSource+=ad_spec.zone_info+';';adSource+=getQCSegs();if(ad_spec.interstitial&&(typeof ads_page_type!='undefined'&&ads_page_type!='big_news')&&!(document.referrer&&document.referrer.match(/.*(yahoo|aol)\.com.*/)))adSource+="dcopt=ist;";adSource+=(test_kws=location.href.match(/dc_kw\=[^\&]*/gi))?'kw='+test_kws.toString().replace(/dc_kw\=/gi,'').replace(/\,/gi,';kw=')+';':'';adSource+=(location.href.match(/beta\./))?'kw=beta;':'';adSource+=(typeof ads_page_type!='undefined')?'page_type='+ads_page_type+';':'';adSource+="tile="+ad_spec.tile+";";adSource+="sz="+(ad_spec.sizes||(ad_spec.width+"x"+ad_spec.height))+";";adSource+="ord="+WEDGJE_ord+"?";return adSource;};getBareScript=function(ad_spec) {if(this.isIE) {innerH='';return innerH;} else {s=document.createElement('script');s.type="text/javascript";s.src=ad_spec["src"];return s;}};ad_store={};WEDGJE_ord=Math.random();WEDGJE_ord=WEDGJE_ord*10000000000000000000;isIE=(true||(navigator.userAgent&&navigator.userAgent.match(/MSIE/)));return{double_adsense:false,ads:function(ad_name){return ad_store[ad_name];},ord:function(ad_name){return WEDGJE_ord;},debug_ad_code:function(ad_spec) {return(location.href.toLowerCase().match('debugadcode'))?'
'+getSource(ad_spec).replace(/\;/gi,';
')+'
':'';},inline_ad:function(ad_spec) {ad_spec.prefix='http://ad.doubleclick.net/adj/';document.write(''+this.debug_ad_code(ad_spec));},postload_ad:function(ad_spec,container_id) {var width_str='height: '+ad_spec.height+'px; ';var height_str='width: '+ad_spec.width+'px; ';if(ad_spec.no_container) {width_str='';height_str='';} if(ad_spec.type=='iframe') {ad_store[ad_spec.el_id]=getIframe(ad_spec);}else if(ad_spec.type=='script'){ad_store[ad_spec.el_id]=getScript(ad_spec);}else if(ad_spec.type=='bare'){ad_store[ad_spec.el_id]=getBareScript(ad_spec);} if(isIE) {if(typeof(container_id)=="undefined") {document.write('
'+ad_store[ad_spec.el_id]+'<\/div>'+this.debug_ad_code(ad_spec));} else {$(container_id).innerHTML='
'+ad_store[ad_spec.el_id]+'<\/div>'+this.debug_ad_code(ad_spec);}} else {if(typeof(container_id)=="undefined") {document.write('
<\/div>'+this.debug_ad_code(ad_spec));} else {$(container_id).innerHTML='
<\/div>'+this.debug_ad_code(ad_spec);} setTimeout("$('"+ad_spec.el_id+"').appendChild(HuffPoUtil.WEDGJE.ads('"+ad_spec.el_id+"'));",(ad_spec.tile*200)+1);}},interstitial:true,tile:1,write:function(ad_spec,container_id) {ad_spec.tile=this.tile++;if(location.href.match('no_ads')||location.href.match('nsup'))return;if(container_id) {this.postload_ad(ad_spec,container_id)} else {ad_spec.interstitial=this.interstitial;this.interstitial=false;this.inline_ad(ad_spec)}},google_ads:{primed:false,counter:0,vars:{'ad_client':'"pub-3264687723376607"','ad_output':'"js"','max_num_ads':3,'ad_type':'"text"','feedback':'"on"','ad_request_done':'HuffPoUtil.WEDGJE.google_ads.render'},init:function() {if(!document.getElementById(arguments[0]['hp_dest_id'].replace(/\"/gi,'')))return;if(!HuffPoUtil.WEDGJE.google_ads.primed) {HuffPoUtil.WEDGJE.google_ads.primed=true;} HuffPoUtil.WEDGJE.google_ads.executions=HuffPoUtil.WEDGJE.google_ads.executions||[];var z=HuffPoUtil.WEDGJE.google_ads.executions.length;HuffPoUtil.WEDGJE.google_ads.executions[z]=[];for(var _name in HuffPoUtil.WEDGJE.google_ads.vars) {HuffPoUtil.WEDGJE.google_ads.executions[z][_name]=HuffPoUtil.WEDGJE.google_ads.vars[_name];} for(var _name in arguments[0]) {HuffPoUtil.WEDGJE.google_ads.executions[z][_name]=arguments[0][_name];}},exec:function() {if(!HuffPoUtil.WEDGJE.google_ads.executions||0===HuffPoUtil.WEDGJE.google_ads.executions.length)return;_vars=HuffPoUtil.WEDGJE.google_ads.executions[0];for(var a in _vars) {eval('google_'+a+' = '+_vars[a]);} google_skip=(HuffPoUtil.WEDGJE.google_ads.counter==0)?0:HuffPoUtil.WEDGJE.google_ads.counter+1;document.write('');},render:function(google_ads) {var contextual_ad_elem=document.getElementById(google_hp_dest_id);if(google_ads.length==0||!contextual_ad_elem)return;var s='
';s+='';for(var i=0;i'+ad.line1+'
',description:'',visible_url:''} var google_code='
';for(var a=0;a]*>)/gi);for(key in matches){if(isNaN(key)){continue;} html=matches[key].toString();allowed=false;for(k in allowed_array){allowed_tag=allowed_array[k];i=-1;if(i!=0){i=html.toLowerCase().indexOf('<'+allowed_tag+'>');} if(i!=0){i=html.toLowerCase().indexOf('<'+allowed_tag+' ');} if(i!=0){i=html.toLowerCase().indexOf('0) {Slider.Positions[vertical]--;} else {return false;} Slider.LoadImage(vertical);D.setStyle(D.getElementsByClassName('slider_slide','div','slider_'+vertical),'display','none');D.setStyle('slider_'+vertical+"_slide_"+Slider.Positions[vertical],'display','block');if(Slider.Positions[vertical]==0) {D.addClass('slider_left_'+vertical,'slider_off');} D.removeClass('slider_right_'+vertical,'slider_off');},LoadImage:function(vertical){this_slide=$("slider_"+vertical+"_img_"+Slider.Positions[vertical]);if(this_slide&&!this_slide.src<2&&this_slide.alt) {this_slide.src=this_slide.alt;}},Positions:new Array(),Lengths:new Array()};var APwires={limit:0,Next:function(id,v_name) {if(!this.limit) {this.limit=$('ap_array_size').innerHTML;} if(id!=this.limit) {D.setStyle('ap-wires-'+id,'display','none');id++;if(id==this.limit) {$('ap-wires-Rimg'+id).style.backgroundPosition='-60px -326px';} D.setStyle('ap-wires-'+id,'display','block');} else {return false;}},Prev:function(id) {if(id!=1) {D.setStyle('ap-wires-'+id,'display','none');id--;D.setStyle('ap-wires-'+id,'display','block');} else {return false;}}};var bignewsUpdate={old_menu_length:0,update:function(vertical) {var uri='/topnav/'+vertical+'.html';YAHOO.util.Connect.asyncRequest('GET',uri,{success:bignewsUpdate.Success,failure:bignewsUpdate.Fail});},Success:function(o) {if(0==bignewsUpdate.old_menu_length) {$('big_news_update').innerHTML=o.responseText;bignewsUpdate.old_menu_length=o.responseText.length;} else {if(bignewsUpdate.old_menu_length!==o.responseText.length) {bignewsUpdate.old_menu_length=o.responseText.length;var bignews_div=document.getElementById("big_news_update");var bg_color='#fff';if(null!=$('topnav_big_news_module')) bg_color=$('topnav_big_news_module').style.backgroundColor;if(bignews_div){anim=new YAHOO.util.ColorAnim(bignews_div,{backgroundColor:{from:'#F9E801',to:bg_color},opacity:{from:0.7,to:1}},1.5) anim.animate();anim=null;} $('big_news_update').innerHTML=o.responseText;}}},Fail:function(o) {return;}};StructuredImage=Class.create();StructuredImage.prototype={initialize:function(Tag){if(!(decon=//.exec(Tag))) return false;this.keywords=decon[2];this.id=decon[3];this.domain=(decon[1])?'dev.assets.huffingtonpost.com':'images.huffingtonpost.com';this.path="http://"+this.domain+"/gen/"+this.id+"/thumbs/";},Url:function(aspect,size){return this.path+aspect+"-"+this.keywords+"-"+size+".jpg";}} var FanSystem={linkClass:'becomefan_link',becomeIdPrefix:'becomefan',updatedIdPrefix:'becomefanupdated',notificationsSaveInner:'
Your notifications preferences are saved
',becomeFan:function(of){if(!of)return true;FanSystem.fanof_username=of.replace(/_/g," ");var fr=YAHOO.util.Connect.asyncRequest('GET','/users/becomeFan.php?of='+of+'&ajax=1',this);return false;},success:function(o){if(o.responseText=='')return false;splits=o.responseText.split(':::');if(splits[0]=='updated'){userid=splits[1];if(!userid)return false;FanSystem.notificationsPop();return this.updateLinks(userid);}else if(splits[0]=='login'){QuickLogin.pop();}},failure:function(o){HPError.e('Sorry, unable to process your request');},timeout:5000,updateLinks:function(userid){links=D.getElementsByClassName(this.linkClass,'a');if(!links.length)return false;for(var i=0,len=links.length;i]*>/.test(o.responseText)){var modal_params={width:595,social_logo:false};QuickSNProject.showModal(o.responseText,modal_params);$('email_alerts_preferences_form').onsubmit=FanSystem.notificationsSave;}}});},notificationsSave:function(){$('btn_save_preferences_centered').innerHTML='';C.setForm($('email_alerts_preferences_form'));C.asyncRequest('POST','/users/notifications/index.php?quicksave=1',{success:function(o){$('huff_snn_modal_common_inner').innerHTML=FanSystem.notificationsSaveInner;setTimeout(function(){Modal.hideMask();},2000);},failure:function(o){Modal.hideMask();},timeout:5000});return false;},onNotificationsPopFilter:function(filter){var appendFilteredResult=function(text,divWidth){var el=document.createElement('DIV');el.style.styleFloat='left';el.style.cssFloat='left';if(typeof(divWidth)!='undefined')el.style.width=divWidth+'px';el.style.border='none';el.style.padding='0';el.innerHTML=text;$('fanof_column_filtered').appendChild(el);} $('fanof_column_filtered').innerHTML='';if(filter==''){$('fanof_column_filtered').style.display='none';$('fanof_column0').style.display='block';$('fanof_column1').style.display='block';$('fanof_column2').style.display='block';return;} $('fanof_column0').style.display='none';$('fanof_column1').style.display='none';$('fanof_column2').style.display='none';filter='fanof_'+filter.replace(' ','_').toLowerCase();var cols={col0:$('fanof_column0'),col1:$('fanof_column1'),col2:$('fanof_column2')};for(var i in cols){els=cols[i].childNodes;for(var j=0;j');iframe.doc.write("a{color: #000000; display:none;}");iframe.doc.write("a:visited {color: #FF0000; display:inline;}");iframe.doc.write('');iframe.doc.close();return iframe;} function chart_showImage(img_type,elem_id){url="http://markets.on.nytimes.com/research/tools/builder/api.asp?sym=$"+ img_type+ "&duration=1&chartstyle=Home&w=337&h=255&display=lineclip";img_elem=document.getElementById(elem_id);img_elem.src=url;} var prev_anchor=false;load_blogrolls=function(vertical,div_elem){if(prev_anchor){D.replaceClass(prev_anchor,"blogroll_tab_anchor","blogroll_tab_anchor_visited");} if(vertical!="home"){var anchor=document.getElementById("blogroll_tab_"+vertical);D.replaceClass(anchor,"blogroll_tab_anchor_visited","blogroll_tab_anchor");prev_anchor="blogroll_tab_"+vertical;} div_elem=div_elem||"blogroll";cb_onSuccess=function(o){var html_text=o.responseText;var elem=o.argument;var div_to_mod=document.getElementById(elem);var elements=D.getElementsByClassName("link_list_wrapper","div");for(i=0;i=this.clicks)) {var spn=this.make_element('span',{id:'new_digg_story',className:'right_now_yahoo'});spn.innerHTML=" Be the First to Submit
This Story to Digg
";this.parent_elem.appendChild(spn);document.write("